The batch document generator is a batch tool generating one or more documents at once. A typical usage is from a shell script. Documents are requested with a path relative to the directory the batch generator was launched from.
If current directory contains a hello.novella file then following invocation will generate an HTML file named output/hello.html:
java -jar $NOVELANG_DIR/novelang-VERSION.jar generate /hello.html
--output-dir option
The --output-dir option sets the output directory, where rendered documents are generated to.
java -jar $NOVELANG_DIR/novelang-VERSION.jar generate --output-dir generated/html /hello.html
Default value is output.
--content-root option
The --content-root option sets the base directory to another value than current directory:
--content-root=../my-source/documents
--temporary-dir option
The --temporary-dir option sets where Novelang writes its log files.
--log-temporary temporary-files
Default value is $temporary$.
--log-dir option
The --log-dir option sets where Novelang writes its log files.
--log-dir logs
Default value is current directory (the value of user.dir system property).
--font-dirs option
The --font-dirs option sets multiple directories where Novelang looks for fonts.
--font-dirs my/fonts-1 /Users/Shared/Fonts
--style-dirs option
The --style-dirs option sets multiple directories where Novelang looks for stylesheets and related resources. See chapter about stylesheet for details.
--style-dirs my/styles-1 /Users/Shared/Fonts
--hyphenation-dir option
The --hyphenation-dir option sets where Novelang should attempt to load hyphenation files from.
--hyphenation-dir my/directory
--source-charset option
The --source-charset option sets the charset of source documents.
--source-charset MacRoman
Default value is UTF-8.
--rendering-charset option
The --rendering-charset option sets the charset of rendered documents.
--rendering-charset iso-8859-2
Default value is UTF-8.